<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>角色管理</title>
<link rel="shortcut icon" href="/favicon.ico">
<link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="../plugins/jsTree/style.min.css" rel="stylesheet">
<link href="../css/animate.css" rel="stylesheet">
<link href="../css/style.css?v=4.1.0" rel="stylesheet">
<link href="../plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link rel="stylesheet" href="../plugins/layui/css/layui.css"  media="all">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5>角色管理</h5>
          <div class="ibox-tools"> <a class="collapse-link"> <i class="fa fa-chevron-up"></i> </a> <a class="close-link"> <i class="fa fa-times"></i> </a> </div>
        </div>        
        <div class="ibox-content">
            <div class="fixed-table-toolbar" style="height:50px;">
              <div class="bars pull-left">
                <div class="btn-group hidden-xs" id="exampleTableEventsToolbar" role="group">
                  <button type="button" class="btn btn-outline btn-default" title="新建角色" id="addRole"> <i class="glyphicon glyphicon-plus" aria-hidden="true"></i> </button>
                  <button type="button" class="btn btn-outline btn-default" title="批量删除" id="delAll"> <i class="glyphicon glyphicon-trash" aria-hidden="true"></i> </button>
                </div>
              </div>
              <div class="columns columns-right btn-group pull-right">
                <button class="btn btn-default btn-outline" type="button" name="search" title="搜索" id="search"> <i class="glyphicon glyphicon-search"></i> </button>
                <button class="btn btn-default btn-outline" type="button" name="refresh" title="刷新" id="refresh"> <i class="glyphicon glyphicon-repeat"></i> </button>
              </div>
              <div class="pull-right search">
                <input name="keyword" class="form-control input-outline" type="text" placeholder="请输入角色名称" id="keyword">
              </div>
            </div>
          <table id="role-list" lay-filter="test">
          </table>
        </div>
      </div>
    </div>    
  </div>
</div>
<div class="modal inmodal" id="role-model">
	<div class="modal-content animated bounceInUp">
      <div class="ibox-title">
        <h5 id="edit-title">新增角色</h5>
        <div class="ibox-tools"><a class="close-link" data-dismiss="modal"> <i class="fa fa-times"></i> </a> </div>
      </div>
      <div class="ibox-content">
        <fieldset class="layui-elem-field layui-field-title">
          <form class="layui-form layui-form-pane" action="">
            <input id="roleId" name="roleId" type="hidden" value="0">
            <div class="layui-form-item">
              <label class="layui-form-label">角色名称</label>
              <div class="layui-input-block">
                <input type="text" id="roleName" name="roleName" autocomplete="off" placeholder="请输入角色名称" class="layui-input" lay-verify="required">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">请选择功能</label><br/>
              <div style="clear:both;display:block;">
                <div id="function-list">
                </div>
              </div>
              <input name="functionId" type="hidden" value="">
            </div>
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
            </div>
          </form>
        </fieldset>
      </div>
      </div>
 </div>
<!-- 全局js --> 
<script src="../plugins/layui/layui.all.js" charset="utf-8"></script>
<script src="../script/jquery.min.js?v=2.1.4"></script>
<script src="../script/bootstrap.min.js?v=3.3.6"></script>

<!-- 自定义js --> 
<script src="../script/content.js?v=1.0.0"></script>
<script src="../script/W.js?v=3.3.6"></script>

<!-- jsTree plugin javascript --> 
<script src="../plugins/jsTree/jstree.min.js"></script>
<style>
        .jstree-open > .jstree-anchor > .fa-folder:before {
            content: "\f07c";
        }

        .jstree-default .jstree-icon.none {
            width: 0;
        }
    </style>
<script scr="../script/role.js"></script>
<script type="text/html" id="toolBar">
  <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
</script>
</body>
</html>
